﻿using System;
using System.Web.UI;
using QuickDev.Localization;


[assembly: TagPrefix( "QuickDev.ServerControls" , "QuickDev" )]
namespace QuickDev.ServerControls
{
    [ToolboxData( "<{0}:RadioButton ID=\"RadioButtonId\" runat=\"server\" />" )]
    public class RadioButton : System.Web.UI.WebControls.RadioButton
    {

        protected override void Render( HtmlTextWriter writer )
        {
            if ( !string.IsNullOrEmpty( this.ID ) && this.Text.Length == 0 )
            {
                this.Text = LocalizationUtility.GetText( this.ID );
            }
            base.Render( writer );
        }
    }
}
